import request from '@/utils/request'

export function addcollege(param) {
  return request({
    url: '/college/add',
    method: 'POST',
    data: param,
    baseURL: 'http://210.42.37.244:8080'// http://127.0.0.1:8080
  })
}

export function searchcollege() {
  return request({
    url: '/college/search',
    method: 'GET',
    baseURL: 'http://210.42.37.244:8080'
  })
}
export function searchc() {
  return request({
    url: '/college/searchc',
    method: 'GET',
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function deletecollege(param) {
  return request({
    url: '/college/delete',
    method: 'POST',
    params: param,
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function delete_c(param) {
  return request({
    url: '/college/delete_c',
    method: 'POST',
    params: param,
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function addfield(param) {
  return request({
    url: '/field/add',
    method: 'POST',
    data: param,
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function searchfield() {
  return request({
    url: '/field/search',
    method: 'GET',
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function searchf() {
  return request({
    url: '/field/searchf',
    method: 'GET',
    baseURL: 'http://210.42.37.244:8080'
  })
}

export function deletefield(param) {
  return request({
    url: '/field/delete',
    method: 'POST',
    params: param,
    baseURL: 'http://210.42.37.244:8080'
  })
}
export function delete_f(param) {
  return request({
    url: '/field/delete_f',
    method: 'POST',
    params: param,
    baseURL: 'http://210.42.37.244:8080'
  })
}
